<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/tags.jsp"%>

<div class="row-fluid navbar">
	<div class="navbar-inner">
		<span class="brand">关键字一览</span>
		<a href="<s:url namespace="/keyword" action="input"></s:url>" class="btn btn-primary pull-right">新建</a>
	</div>
</div>

<div class="bs-search-panel">
	<s:form name="/pic" action="list" cssClass="form-horizontal" theme="simple">
		<div class="control-group">
			<label class="control-label">图片名称</label>
			<div class="controls">
				<input type="text" name="title" value="<s:property value="title"/>"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">图片编号</label>
			<div class="controls">
				<input type="text" name="imageNo" value="<s:property value="imageNo"/>"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">图片原始编号</label>
			<div class="controls">
				<input type="text" name="originNo" value="<s:property value="originNo"/>"/>
			</div>
		</div>
		<div class="control-group">
			<div class="controls">
				<button type="submit" class="btn btn-middle btn-primary span2">检索</button>
			</div>
		</div>
	</s:form>
</div>

<div class="row-fluid table-list">
	
	<div class="pagination pagination-right">
		<ul>
			<li><a href="#">Prev</a></li>
			<li><a href="#">1</a></li>
			<li><a href="#">2</a></li>
			<li><a href="#">3</a></li>
			<li><a href="#">4</a></li>
			<li><a href="#">Next</a></li>
		</ul>
	</div>
	
	<s:iterator var="image" value="imageList" status="st">
		<s:if test="#st.index % 4 == 0"><ul class="thumbnails"></s:if>
			<li class="span3">
				<a href="#" class="thumbnail">
					<img src="<s:property value="getImageURL(#image.dir, #image.name)"/>" />
				</a>
				<p>标题:<s:property value="#image.titleZh"/><s:if test="#image.titleEn != null">(<s:property value="#image.titleEn"/>)</s:if></p>
				<p>图片编号:<s:property value="#image.noPrefix"/>-<s:property value="#image.no"/></p>
				<p>图片原始编号:<s:property value="#image.originNo"/></p>
			</li>
		<s:if test="(#st.index + 1) % 4 == 0 || (#st.index + 1) == #image.size"></ul></s:if>
	</s:iterator>
	
	
</div>